package com.tyqx.hashchainbiz.service;

import com.mongodb.client.gridfs.GridFSBucket;
import com.mongodb.client.gridfs.model.GridFSUploadOptions;
import com.tyqx.hashchainbean.module.*;
import com.tyqx.hashchainbean.test.BaiWanTest;
import com.tyqx.hashchainbean.vo.MongoDbInfoNoListVO;
import com.tyqx.hashchainbean.vo.MongoDbInfoVO;
import org.bson.types.ObjectId;

import java.io.InputStream;
import java.util.List;

public interface MysqlDataBaseAndMongDbConfigService {

    public Integer recordJZTLogistics(String hashValue, HashIndex hashIndex, JZTLogistics jztLogistics) throws Exception;

    public Integer recordJZTLogisticsBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTLogistics> jztLogisticsList) throws Exception;

    public Integer recordJZTAttachmentBusiness(String hashValue, HashIndex hashIndex, JZTAttachmentBusiness jztAttachmentBusiness) throws Exception;

    public Integer recordJZTAttachmentBusinessBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTAttachmentBusiness> jztAttachmentBusinessList) throws Exception;

    public ObjectId insertDataCountAndMongoDBGridFS(HashChainStatistics hashChainStatistics, String fileName, InputStream inputStream, GridFSUploadOptions options, GridFSBucket gridFSFilesBucket)throws Exception;

    public boolean insertDataCountAndMongoDB(HashChainStatistics hashChainStatistics, String collName, MongoDbInfoVO mongoDbInfoVO) throws Exception;

    public boolean insertDataCountAndMongoDBSingle(HashChainStatistics hashChainStatistics, String collName, MongoDbInfoNoListVO mongoDbInfoNoListVO) throws Exception;

    public boolean insertDataMongoDB(String collName, MongoDbInfoVO mongoDbInfoVO) throws Exception;


    public Integer recordJZTCodeCirculationBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTCodeCirculation> jztCodeCirculationList) throws Exception;
    public Integer recordJZTCodeCirculationAttachmentBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTCodeCirculationAttachment> jztCodeCirculationAttachmentList) throws Exception;
    public Integer recordJZTGS1Batch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTGS1Str> jztgs1List) throws Exception;
    public Integer recordJZTGS1AttachmentBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<JZTGS1Attachment> jztgs1AttachmentList) throws Exception;

    public Integer recordBaiWanTestBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<BaiWanTest> baiWanTestList) throws Exception;

    public Integer recordWxAccountFirmVerificationBatch(List<String> hashValueList, List<HashIndex> hashIndexList, List<WxAccountFirmVerification> wxAccountFirmVerificationList) throws Exception;

    public Integer addVerificationAndRelation(WxAccountFirmVerification wxAccountFirmVerification,WxAccountFirmVerificationRelation wxAccountFirmVerificationRelation)throws Exception;
}
